//
//  NumberTableViewCell.m
//  1243
//
//  Created by apple on 16/7/7.
//  Copyright © 2016年 1243. All rights reserved.
//

#import "NumberTableViewCell.h"

@implementation NumberTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
//        self.backgroundColor = [UIColor colorWithRed:228/255.0 green:229/255.0 blue:234/255.0 alpha:1];
//        UIView *backView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, WIDTH, WIDTH/3 + 120)];
//        backView.backgroundColor = [UIColor whiteColor];
        
        self.numberLB = [[UILabel alloc]initWithFrame:CGRectMake(10, 0, 100, 40)];
        self.numberLB.text = @"订单编号:";
        
//        self.aititudeLB = [[UILabel alloc]initWithFrame:CGRectMake(WIDTH - 100, 0, 100, 40)];
//        self.aititudeLB.textColor = [UIColor orangeColor];
//        self.aititudeLB.text = @"等待揭晓";
        
        UILabel *oneLine = [[UILabel alloc]initWithFrame:CGRectMake(0, 40, WIDTH, 1)];
        oneLine.backgroundColor = [UIColor lightGrayColor];
        
        self.picImg = [[UIImageView alloc]initWithFrame:CGRectMake(10, 50, WIDTH/3, WIDTH/3)];
        self.picImg.backgroundColor = [UIColor yellowColor];
        
        self.nameLB = [[SizeFiteLabel alloc]initWithFrame:CGRectMake(WIDTH/3 + 20, 70, WIDTH - (WIDTH/3 + 30), 10)];
        self.nameLB.mHV = NO;
        self.nameLB.backgroundColor = [UIColor cyanColor];
        self.nameLB.mContent = @"挨打了客户来看离开李克强就我离开的看起我哪里的可能完全离开你立刻前往";
        
        self.qiLB = [[UILabel alloc]initWithFrame:CGRectMake(WIDTH/3 + 20, 150, 70, 20)];
        self.qiLB.text = @"第XXX期";
        self.qiLB.font = [UIFont systemFontOfSize:12];
        
        self.aititudeLB = [[UILabel alloc]initWithFrame:CGRectMake(WIDTH/3 + 20, 180, 70, 20)];
        self.aititudeLB.text = @"抢宝状态";
        
        
//        [self.contentView addSubview:backView];
        [self.contentView addSubview:self.numberLB];
        [self.contentView addSubview:oneLine];
        [self.contentView addSubview:self.aititudeLB];
        [self.contentView addSubview:self.picImg];
        [self.contentView addSubview:self.nameLB];
        [self.contentView  addSubview:self.qiLB];
        
        
    }
    return self;
}



- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
